package de.baumann.browser.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import de.baumann.browser.R
import de.baumann.browser.api.net.vo.gg.Smelter

class SmeltersAdapter : BaseQuickAdapter<Smelter, BaseViewHolder>(R.layout.item_smelter) {
    override fun convert(helper: BaseViewHolder, item: Smelter) {
        helper.setText(R.id.itemDotTag, "${helper.layoutPosition + 1}")
        helper.setText(R.id.smelterName, item.name)
        helper.setText(R.id.smelterNums, "${item.headcount} people")
        helper.setText(R.id.totalProfit, "${item.totalProfit}")
    }
}